#ifndef RESENDER_H
#define RESENDER_H

#define TRUE 1
#define FALSE 0
#include "key.h"

class Resender
{
private:
    Key comb;
    void (*func)();
public:
    Resender(){comb.setCombination(0); func = 0;}
    Resender(Key NewComb, void (*NewFunc)()){comb = NewComb; func = NewFunc;}

    Key getComb () const {return comb;}
    void call () const {(*func)();}

    void rebind (void (*NewFunc)()) {func = NewFunc;}

};

#endif // RESENDER_H
